#! /bin/bash

old_setting=$(stty -g)
echo 'Hit a key'
stty -icanon -echo
key=$(dd bs=1 count=1 2>/dev/null)
stty $old_setting
echo "read $key"
